From b69477172830defb6a08e560b6914325484c10cc Mon Sep 17 00:00:00 2001 From: nana-4 Date: Sat, 8 Aug 2020 08:37:33 +0900 Subject: [PATCH] colorbutton: Remove .activatable style class from the color swatch The button itself is activatable, but its color swatch is not. --- gtk/gtkcolorbutton.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c index f117d8bef7..511f26bd59 100644 --- a/gtk/gtkcolorbutton.c +++ b/gtk/gtkcolorbutton.c @@ -272,6 +272,7 @@ gtk_color_button_init (GtkColorButton *button) button->swatch = gtk_color_swatch_new (); gtk_widget_set_can_focus (button->swatch, FALSE); + gtk_widget_remove_css_class (button->swatch, "activatable"); g_object_set (button->swatch, "has-menu", FALSE, NULL); layout = gtk_widget_create_pango_layout (GTK_WIDGET (button), "Black"); pango_layout_get_pixel_extents (layout, NULL, &rect); -- 2.30.2